package demo3;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 石方旭
 * Date: 2022-07-29
 * Time: 11:17
 */
public class TestDemo {


    public synchronized static void method1(){

    }
    public void method2(){
        synchronized(TestDemo.class){

        }
    }

    public synchronized void method3(){

    }

    public void method4(){
        synchronized(this){

        }
    }



    public static void main(String[] args) {

    }


}
